package com.purchase.manage.damian;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.purchase.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author oyi46
 * @version 1.0
 * Create by 2023/7/6 15:10
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StoreQuotation {
//商品类报价单

    //所属订单id
    private Long orderId;

    //商品类报价单id
    private Long storeQuotationId;

    //报价公司id
    private Long supplierId;

    @Excel(name = "报价单位名称")
    private String corporateName;

    @Excel(name = "联系人")
    private String contacts;

    @Excel(name = "联系电话")
    private String contactsPhone;

    @Excel(name = "邮箱")
    private String email;

    @Excel(name = "联系地址")
    private String address;

    @Excel(name = "含运费、安装调试、税等总价（元）：")
    private BigDecimal countPrice;

    @Excel(name = "交货时间：")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;

    @Excel(name = "质保期：")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warrantyTime;

    @Excel(name = "报价日期：")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date quotationTime;

    @Excel(name = "备注：")
    private String remake;

    //商品类报价单中的物资清单
    List<StoreQuotationList> storeQuotationLists;
    /**
     * 报价单副本图片地址
     */
    private String quotationCopyPhoto;

    //订单（物资）类别
    private String type;

    //b.supplier_id
    private String bid;
    //b.state
    private String state;

    private MultipartFile file;

    private MultipartFile photo;

    private String dtime;
    private String wtime;
    private String qtime;

}
